class Solution {
public:
    int countOdds(int low, int high) {
        if((high-low)%2==1)return (high-low)/2+1;
        else{
            if(high%2==0)return (high-low)/2;
            else return (high-low)/2+1;

        }
    }
};
